import request from "@/utils/request";
// -------- 配置 --------

let BASE_ADDRESS = "/base/mailbox";
// 分页查询邮箱
/* /base/mailbox/list */
export const getmailboxListApi = params => {
  return request({
    url: `${BASE_ADDRESS}/list`,
    method: "get",
    params
  });
};
// 添加单个邮箱/base/mailbox/add
export const addMailboxApi = data => {
  return request({
    url: `${BASE_ADDRESS}/add`,
    method: "post",
    data
  });
};
// 修改邮箱/base/mailbox/edit
export const editMailboxApi = data => {
  return request({
    url: `${BASE_ADDRESS}/edit`,
    method: "put",
    data
  });
};
//删除邮箱 /base/mailbox/remove/{id}
export const removeMailboxApi = id => {
  return request({
    url: `${BASE_ADDRESS}/remove/${id}`,
    method: "delete"
  });
};
